<?php
/* @var $this InstrumentController */

$this->breadcrumbs=array(
	'大型仪器共享系统',
);
?>
<?php
$this->menuitemName = '大型仪器共享系统';
$this->menuList = array();
$this->menuList[] = array('label'=>'预定信息查询', 
    'url'=>'instrument/reserveinfo'
);
?>


<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
    <div class="titleimage">
        <h3 class="panel-title panel-title-font">
            <?php echo '大型仪器共享系统'; ?>
        </h3>
    </div>
    </div>
    <div class="panel-body" style="padding:25px" id="frontdatetable">
        <div style="text-align:center;margin-bottom:10px">
            <form method="get">
            <input type="text" name="search" value="<?php echo $key?>"></input>
                <button type="submit">搜索仪器</button>
            </form>
        </div>
    
    <?php if($search):?>
        <?php if($model != null):?>
        <?php foreach($model as $elem):?>
            <?php echo $this->renderPartial('_view', array('data'=>$elem)); ?>
        <?php endforeach;?>
        <?php else:?>
            No records found.
        <?php endif;?>
    <?php else:?>

    <?php $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'_view',
    )); ?>
    <?php endif;?>
    </div>
</div>

